package creational.abstractfactory;

import creational.abstractfactory.impl.Four;
import creational.abstractfactory.impl.Three;
import creational.abstractfactory.interfaces.Color;
import creational.abstractfactory.interfaces.Price;

public class PriceFactory extends AbstractFactory {
    @Override
    public Color getColor(String color) {
        return null;
    }

    @Override
    public Price getPrice(String price) {
        if (price.equalsIgnoreCase("three"))
            return new Three();
        else if (price.equalsIgnoreCase("four"))
            return new Four();
        return null;
    }
}
